﻿@using System.Web.UI.WebControls
@using www.SService
<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>@ViewBag.Title</title>
    <link href="~/Content/Admin.css" rel="stylesheet" />
    <script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.js")" type="text/javascript"></script>
    <link href="~/Content/jquery-ui.css" rel="stylesheet" />
    <script src="~/Scripts/jquery-1.10.2.js"></script>
   <script src="~/Scripts/jquery-ui.js"></script>

    @Scripts.Render("~/bundles/modernizr")
    <script type="text/javascript">


        function confirmDelete() {
            return confirm("Bạn có chắc chắn muốn xóa không?");
        }

        function checkPropertise(propertise) {
            if (isEmpty(propertise))
                return false;
            return true;
        }
        function checkNumber(number) {
            if (!isNumeric(number)) {
                number.value = "";
                return false;
            }

            return true;
        }
    </script>
</head>
<body>

    <div id="page">
        <div id="banner"></div>
        <div id="menu">
            <div id="menu-parent">
                @if (Session["MenuAdmin"] != null)
                {
                    <ul class="nav">
                        @foreach (var item in (List<RelaxMenuDataContract>)Session["MenuAdmin"])
                        {
                            <li><a href="~/@item.Link" target="@item.Target">@item.Name </a></li>
                        }
                        @if (Session["AdminSuccess"] != null && Convert.ToBoolean(Session["AdminSuccess"]))
                        {
                            <li>@Html.ActionLink("Đăng xuất", "Logout", "Admin")</li>
                        }
                    </ul>
                }
            </div>
            <div id="menu-child">
                @if (Session["AdminSuccess"] != null && Convert.ToBoolean(Session["AdminSuccess"]))
                {
                    <p>Xin chào, @Session["AdminUser"]</p>
                }
            </div>
        </div>
           @*  @RenderSection("featured", required: false)*@
        <div id="wapcontent">
            @RenderBody()
        </div>
        <div id="footer"></div>
    </div>
    @RenderSection("scripts", required: false)
</body>
</html>
